package org.springblade.modules.customer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * <p>
 * 客户表
 * </p>
 *
 * @author armyant
 * @since 2024-04-21
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("bladex_boot.customer")
public class Customer {

	public static final String AVATAR = "avatar";
	public static final String BIRTHDAY = "birthday";
	public static final String CODE = "code";
	public static final String CREATE_DEPT = "create_dept";
	public static final String CREATE_TIME = "create_time";
	public static final String CREATE_USER = "create_user";
	public static final String CUSTOMER_GROUP = "customer_group";
	public static final String DETAIL = "detail";
	public static final String EMAIL = "email";
	public static final String ID = "id";
	public static final String ID_CARD = "id_card";
	public static final String IS_DELETED = "is_deleted";
	public static final String LABEL = "label";
	public static final String LEVEL_DICT = "level_dict";
	public static final String MOBILE = "mobile";
	public static final String PHONE = "phone";
	public static final String REMARK = "remark";
	public static final String SEX = "sex";
	public static final String STATUS_DICT = "status_dict";
	public static final String TENANT_ID = "tenant_id";
	public static final String UPDATE_TIME = "update_time";
	public static final String UPDATE_USER = "update_user";
	/**
	 * 头像
	 */
	@TableField("avatar")
	private String avatar;
	/**
	 * 生日
	 */
	@TableField("birthday")
	private LocalDate birthday;
	/**
	 * 客户编号
	 */
	@TableField("code")
	private String code;
	/**
	 * 创建部门
	 */
	@TableField("create_dept")
	private Long createDept;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private LocalDate createTime;
	/**
	 * 创建人
	 */
	@TableField("create_user")
	private Long createUser;
	/**
	 * 客户所属公海
	 */
	@TableField("customer_group")
	private Long customerGroup;
	/**
	 * 客户详情
	 */
	@TableField("detail")
	private String detail;
	/**
	 * 邮箱
	 */
	@TableField("email")
	private String email;
	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	/**
	 * 身份证号码
	 */
	@TableField("id_card")
	private String idCard;
	/**
	 * 是否已删除
	 */
	@TableField("is_deleted")
	private Integer isDeleted;
	/**
	 * 客户标签，以json格式存储
	 */
	@TableField("label")
	private String label;
	/**
	 * 客户级别（参考数据字典level_dict）
	 */
	@TableField("level_dict")
	private Integer levelDict;
	/**
	 * 手机
	 */
	@TableField("mobile")
	private String mobile;
	/**
	 * 客户座机
	 */
	@TableField("phone")
	private String phone;
	/**
	 * 备注
	 */
	@TableField("remark")
	private String remark;
	/**
	 * 性别
	 */
	@TableField("sex")
	private Integer sex;
	/**
	 * 状态（参考数据字典status_dict）
	 */
	@TableField("status_dict")
	private Integer statusDict;
	/**
	 * 租户ID
	 */
	@TableField("tenant_id")
	private String tenantId;
	/**
	 * 修改时间
	 */
	@TableField("update_time")
	private LocalDate updateTime;
	/**
	 * 修改人
	 */
	@TableField("update_user")
	private Long updateUser;
}
